package com.shop.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;


public class Product {
        private int productId;
        private String productName;
        private String description;
        private String category;
        private BigDecimal price;
        private int stock;
        private String image;

        public Product() {
        }

        public Product(int productId, String productName, String description, String category, BigDecimal price, int stock, String image) {
                this.productId = productId;
                this.productName = productName;
                this.description = description;
                this.category = category;
                this.price = price;
                this.stock = stock;
                this.image = image;
        }

        public int getProductId() {
                return productId;
        }

        public void setProductId(int productId) {
                this.productId = productId;
        }

        public String getProductName() {
                return productName;
        }

        public void setProductName(String productName) {
                this.productName = productName;
        }

        public String getDescription() {
                return description;
        }

        public void setDescription(String description) {
                this.description = description;
        }

        public String getCategory() {
                return category;
        }

        public void setCategory(String category) {
                this.category = category;
        }

        public BigDecimal getPrice() {
                return price;
        }

        public void setPrice(BigDecimal price) {
                this.price = price;
        }

        public int getStock() {
                return stock;
        }

        public void setStock(int stock) {
                this.stock = stock;
        }

        public String getImage() {
                return image;
        }

        public void setImage(String image) {
                this.image = image;
        }

        @Override
        public String toString() {
                return "Product{" +
                        "productId=" + productId +
                        ", productName='" + productName + '\'' +
                        ", description='" + description + '\'' +
                        ", category='" + category + '\'' +
                        ", price=" + price +
                        ", stock=" + stock +
                        ", image='" + image + '\'' +
                        '}';
        }
}
